﻿@model IEnumerable<Chbl.Models.SeasonDivision>

@{
    if (Model.Count() > 0)
    { 
        ViewBag.Title = string.Format("Дивизионы {0} сезона ХБЛ", Model.First().Season.Number);
    }
    else { ViewBag.Title = "Нет информации по сезону"; }
}

<div class="pad">
    <div class="box2">
        <div class="pad">
            <h3> @ViewBag.Title</h3>
            <ul>
                @foreach (var item in Model) {
                    <li>
                            @Html.ActionLink( "Дивизион " +  @Html.DisplayFor(modelItem => item.Division.Name).ToString(), "../Schedule/Index", new { seasonDivisionId = item.SeasonDivisionId} )            
                    </li>
                }
            </ul>
        </div>
    </div>
</div>
